<template>
  <div>首页</div>
  <div>{{ num }}</div>
  <button @click="add">点击++</button>
</template>
<script setup>
/*
  script  setup 语法糖
  export default 
  setup(){}
  setup 内的return {}
  import还是写在script标签内
*/
import { ref } from 'vue'
const num = ref(0)
const add = () => {
  num.value++
}
</script>
